﻿using System;
using System.Web;
using Newtonsoft.Json;
using Easy.DAL;

namespace Easy.BLL
{
    public class RepetitionManager
    {
        public String checkRepetition(HttpContext context)
        {
            String UserName = context.Request["username"];
            String Phone = context.Request["phone"];
            RepetitionDAL rd = new RepetitionDAL();
            return JsonConvert.SerializeObject(rd.doCheck(UserName, Phone));
        } 
    }
}